//
//  TapImageView.m
//  yunqiphone
//
//  Created by Maple on 13-7-8.
//  Copyright (c) 2013年 ci123.com. All rights reserved.
//

#import "TapImageView.h"

@implementation TapImageView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
      UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
      [self addGestureRecognizer:tap];
    }
    return self;
}

- (void)tapAction:(UITapGestureRecognizer *) gesture {
  if(_touchBlock != nil) {
    _touchBlock();
  }
}

@end
